package com.li.youhappygo.config;

import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Knife4jConfig {
    private static final String API_TILE="you-happy-go";
    @Bean
    public GroupedOpenApi adminApi() {
        return GroupedOpenApi.builder()
                .group(API_TILE)
                .pathsToMatch("/**")
                .build();
    }
}
